home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / DBASE.TEC < prev    next >
Text File  |  1992-03-09  |  3KB  |  54 lines

  1. ID:DB dBase III Plus and IV Colors
  2. DESQview Technical Note #126
  3. by Stan Young
  4. last revision:  10 February 1992
  5.  
  6.      dBASE III Plus and dBASE IV use the TopView/DESQview call to write to 
  7. DESQview's screen buffer and therefore can be run in a small window and in the 
  8. background.
  9.      Unfortunately, when the dBASE developers implemented the call, they used 
  10. a TopView function called "Logical Colors" incorrectly. As a result, when you 
  11. run dBASE with the "Writes Directly to Screen" option turned off, dBASE will 
  12. not display the colors that you select with the "SET COLOR TO" option.  When 
  13. dBASE is run with the default color scheme and is running in the ASSIST mode, 
  14. the menu bars do not display highlighting properly.
  15.      The most drastic way to cause dBASE to display the screen correctly is to 
  16. run DESQview's "Change a Program" and turn on the options "Writes Directly to 
  17. Screen" and "Runs Only in Foreground." Using this configuration, colors in 
  18. dBASE will appear exactly as they do in DOS.  Unfortunately, this prevents the 
  19. program from processing in a small window and running properly in the 
  20. background unless you are running on a 386 machine, in which case DESQview can 
  21. virtualize the screen.
  22.      If you don't have to set specific colors, however, there is another 
  23. solution that will result in a pleasant, readable set of colors that will run 
  24. properly in a window and background:
  25.  
  26.      FIRST - Edit the CONFIG.DB file (in your dBASE directory) and change the 
  27.      line that says "COMMAND = ASSIST" to:
  28.  
  29.           COMMAND = DO DESQVIEW
  30.  
  31.      NEXT - Using a word processor capable of producing ASCII files (such as 
  32.      you would use to write batch files), make a file called DESQVIEW.PRG and 
  33.      place it in the dBASE directory.  The file should contain the following 
  34.      two lines followed by a blank line:
  35.  
  36.           SET COLOR TO 
  37.           ASSIST
  38.  
  39.      When you run dBASE, dBASE will now automatically run the DESQVIEW.PRG 
  40. file.  This provides a pleasant set of colors, although not exactly the 
  41. default colors that it should provide. You may then use the DESQview option to 
  42. change the colors further, if you like, by selecting "Rearrange" and "Colors" 
  43. from the DESQview main menu.  
  44.      Let me restate that this problem occurs because of what amounts to a 
  45. dBASE III Plus and dBASE IV "bug" in their TopView/DESQview routines.  Since 
  46. we support these routines, the problem only shows up when you are running in 
  47. DESQview or TopView.  
  48.  
  49.   ************************************************************************
  50.   *This technical note may be copied and distributed freely as long as it*
  51.   *is distributed in its entirety and it is not distributed for profit.  *
  52.   *         Copyright (C) 1990-2 by Quarterdeck Office Systems           *
  53.   ************************ E N D   O F   F I L E *************************
  54.